import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('../views/About.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login.vue')
  },
  {
    path: '/myCart',
    name: 'myCart',
    component: () => import('../views/myCart.vue')
  },
  {
    path: '/two',
    name: 'two',
    component: () => import('../views/two.vue')
  },
  {
    path: '/one',
    name: 'one',
    component: () => import('../views/one.vue')
  },
  {
    path: '/three',
    name: 'three',
    component: () => import('../views/three.vue')
  },
  {
    path: '/four',
    name: 'four',
    component: () => import('../views/four.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
